package cn.kgc.service.system;

import cn.kgc.dao.system.userDao;
import cn.kgc.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class userServiceImpl implements IuserService {

    @Resource
    private userDao userMapper;

    @Resource
    private userDao u;

    @Override
    public User login(String username, String password) {
        User user = userMapper.login(username, password);
        return user;
    }


    /**
     * 修改密码
     *
     * @param id
     * @param pwd
     */
    @Override
    public Integer updatePwd(Integer id, String pwd) {
        return u.updatePwd(id,pwd);
    }

    /**
     * 个人信息
     *
     * @param id
     */
    @Override
    public User selUserInfo(Integer id) {
        return u.selUserInfo(id);
    }


}
